package com.servertrack

import java.util.Date;

class Hotel {
	 String title
	 String adress
	 String website
	 String description
	 Date dateCreated
	
	static belongsTo=[tur:Tur]
	
	static hasMany=[times:Times]
	
	static constraints = {
		title(size: 2..50,blank:false)
		adress(size:5..50,blank:false)
		website(size:2..20,blank:false)
		description(blank:false)
		dateCreated(nullable:true)
	}
	
	String toString(){
		return "Hotel: ${title}"
	}
	
}